var mongoose = require("mongoose");
// 定义一个新闻结构
var AccountSchema = new mongoose.Schema({
  user: {
    type: String,
    trim: true
  },
  name: {
    type: String,
    require: true,
    trim: true
  },
  phone: {
    type: String,
    require: true,
    trim: true
  },
  status: {
    type: Boolean,
    require: true,
    trim: true
  },
  role: {
    type: String,
    require: true,
    trim: true
  }
});


module.exports = mongoose.model("Account", AccountSchema);
